﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Project.Models
{
    /// <summary>
    /// 被继承的实体
    /// </summary>
    [SugarTable("BaseEntity", "基类", IsDisabledUpdateAll = true)]
    public class BaseEntity
    {
        /// <summary>
        /// Id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public long Id { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsRemove { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime DateTime { get; set; } = DateTime.Now;
    }
}
